﻿using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Linq;
using BLL;
namespace DBLWebService
{
    /// <summary>
    /// UserCompanyService 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ToolboxItem(false)]
    // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务，请取消对下行的注释。
    // [System.Web.Script.Services.ScriptService]
    public class UserCompanyService : System.Web.Services.WebService
    {

        [WebMethod (Description = "在usercompany表中增加或者修改主键是id的记录")]
        public int AddUpdateUserCompany(int id, string dblNo, string nickName,
            string fullName, string keyWord1, string keyWord2, string keyWord3,
                string address, string description, string phone, string fax,
                    string email, string mobilePhone, string qq, string msn,
                        string blog, string weibo, string website)//infostate默认为0,infotime默认为当前时间
        {
            return UserCompanyBLL.AddUpdateUserCompany(id, dblNo, nickName,
                fullName, keyWord1, keyWord2, keyWord3,
                address, description, phone, fax,
                email, mobilePhone, qq, msn,
                blog, weibo, website);
        }

        [WebMethod(Description = "usercompany中主键是id的信息通过审核")]
        public int ApproveUserCompany(int usermemberid)
        {
            return UserCompanyBLL.ApproveUserCompany(usermemberid);
        }

        [WebMethod(Description = "usercompany中主键是id的信息不通过审核")]
        public int NotApproveUserCompany(int usermemberid)
        {
            return UserCompanyBLL.NotApproveUserCompany(usermemberid);
        }
        [WebMethod(Description = "获取usercompany中主键是id详细信息")]
        public DataSet FindCompanyDetailByID(int usermemberid)
        {
            return UserCompanyBLL.FindCompanyDetailByID(usermemberid);
        }
    }
}
